home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / defoma / defoma-test.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2006-06-17  |  461b  |  21 lines

  1. #! /bin/sh
  2.  
  3. mkdir -p var/lib/defoma/scripts
  4. mkdir -p usr/share/defoma/scripts
  5. mkdir -p etc/defoma
  6.  
  7. cp -r /usr/share/defoma/* usr/share/defoma
  8. cp /etc/defoma/*.subst-rule etc/defoma
  9.  
  10. SYSTEM="postscript\npspreview\npsprint\nx-postscript\nxfont"
  11. for i in /var/lib/defoma/*.font-cache; do
  12.   s=${i##*/}
  13.   s=${s%.font-cache}
  14.   if ! echo -e "$SYSTEM" | fgrep -q -x -e "$s"; then
  15.     cp $i var/lib/defoma
  16.   fi
  17. done
  18.  
  19. echo "export DEFOMA_TEST_DIR=`pwd`; ${SHELL:-bash}"
  20.  
  21.